import request from '@/utils/request'

// 查询运营城市列表
export function listOperatingCity(query) {
  return request({
    url: '/operatingCity/operatingCity/list',
    method: 'get',
    params: query
  })
}

// 查询运营城市详细
export function getOperatingCity(id) {
  return request({
    url: '/operatingCity/operatingCity/' + id,
    method: 'get'
  })
}


//启用停用
export function editAvailable(data) {
  return request({
    url: '/operatingCity/operatingCity/editAvailable',
    method: 'put',
    data: data
  })
}

// 新增运营城市
export function addOperatingCity(data) {
  return request({
    url: '/operatingCity/operatingCity',
    method: 'post',
    data: data
  })
}

// 修改运营城市
export function updateOperatingCity(data) {
  return request({
    url: '/operatingCity/operatingCity',
    method: 'put',
    data: data
  })
}

// 删除运营城市
export function delOperatingCity(id) {
  return request({
    url: '/operatingCity/operatingCity/' + id,
    method: 'delete'
  })
}

// 导出运营城市
export function exportOperatingCity(query) {
  return request({
    url: '/operatingCity/operatingCity/export',
    method: 'get',
    params: query
  })
}

